Completed
Pull Request — master (#3)
by
unknown
19:47
created

bar.js ➔ Bar   A

Complexity

Conditions 1

Size

Total Lines 12
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 12
c 0
b 0
f 0
rs 9.8
cc 1
1
import React from 'react';
2
3
export default function Bar(props) {
4
    const {index, width, value, fill} = props.data;
5
6
    return (
7
        <rect
8
            x={index*width}
9
            y={window.innerHeight - value-1}
10
            width={`${width -3}`}
11
            height={value}
12
            stroke='#A0A1A1'
13
            fill={fill}
14
        />
15
    );
16
}
17